package com.vip.seata.at.business.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "account-service")
public interface AccountFeign {

    @PostMapping("/account/debit")
    void debit(@RequestParam String userId, @RequestParam int money);

}